Level

enum Level

A set of standard logging levels that can be used to control logging output. The logging levels are ordered. Enabling logging at a given level also enables logging at all higher levels.

The levels in descending order are:

  • ERROR (highest value)
  • WARNING
  • INFO
  • DEBUG (lowest value)
In addition there is a level OFF that can be used to turn off logging, and a level ALL that can be used to enable logging of all messages.

Entries

Link copied to clipboard

OFF is a special level that can be used to turn off logging.

Link copied to clipboard

ALL indicates that all messages should be logged.

Link copied to clipboard

ERROR is a message level indicating a serious failure.

Link copied to clipboard

WARNING is a message level indicating a potential problem.

Link copied to clipboard

INFO is a message level for informational messages.

Link copied to clipboard

DEBUG is a message level providing debug information.

Link copied to clipboard

TRACE is a message level providing highly detailed tracing information.

Functions

Link copied to clipboard
open fun valueOf(name: String): Level

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<Level>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.